Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Point Light Data Structure

You use a point light data structure to get or set information about a point light source. A point light data structure is defined by the TQ3PointLightData data type.

typedef struct TQ3PointLightData {
    TQ3LightData                        lightData;
    TQ3Boolean                          castsShadows;
    TQ3AttenuationType                  attenuation;
    TQ3Point3D                          location;
} TQ3PointLightData;
lightData
A light data structure specifying basic information about the point light.
castsShadows
A Boolean value that indicates whether the point light casts shadows ( kQ3True ) or not ( kQ3False ).
attenuation
The type of attenuation of the point light. See "Light Attenuation Values" for a description of the constants this field can contain.
location
The location of the point light, in world coordinates.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |